﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PMS.ENT
{
    public class GroupENT
    {
        public static string _Table = "Groups";

        public int GroupID { get; set; }
        public string GroupName { get; set; }
        public int OwnerID { get; set; }
        public string Owner { get; set; }
        public string Status { get; set; }
        public int CreatedBy { get; set; }
        public DateTime CreatedDate { get; set; }
        public int UpdateBy { get; set; }
        public DateTime UpdateDate { get; set; }
        public int Isdeleted { get; set; }

        public int ProjectID { get; set; }
        public string ProjectName  { get; set; }
        public int ScheduleID { get; set; }
        public string ScheduleName { get; set; }
        public int Member { get; set; }
        public string SStatus { get; set; }

        public UserGroupCollection ListGroupMember { get; set; }

        public GroupENT()
        {
            Isdeleted = 0;
        }
    }

    public enum GroupColumns
    {
        GroupID,
        GroupName,
        OwnerID,
        Owner,
        Status,
        CreatedBy,
        CreatedDate,    
        UpdateBy,
        UpdateDate,
        Isdeleted,

        ProjectID,
        ProjectName,
        ScheduleID,
        ScheduleName,
        Member,
        SStatus
    }

    public class GroupCollection : List<GroupENT>
    {
        public GroupCollection()
            : base()
        { }

        public GroupCollection(IEnumerable<GroupENT> collection)
            : base(collection)
        { }
    }

}
